import { createApp } from 'vue';
import App from './../App.vue';
import directive from "./directives/index"
interface IRender {
  (visible:boolean) : void
}
const render:IRender = (visible:boolean):void => {
  visible && createApp(App).use(directive).mount(
    (() => {
      const el = document.createElement('div');
      document.body.append(el);
      return el;
    })(),
  )
}

export {
  render
}




